package cn.moukou.dictator.dao.node;

import cn.moukou.dictator.pojo.node.Creator;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;

import java.util.List;
import java.util.Map;

public interface CreatorDAO extends Neo4jRepository<Creator, Long> {
    public Creator findByName(String name);

    @Query("match (c:Creator) where c.name = $name return c")
    public Creator customFindByName(String name);
}
